<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ page contentType="text/html; charset=UTF-8"%>
<%@ page pageEncoding="UTF-8"%>

<form method="POST" action="/cultu/supplier/product/edition" modelAttribute="editForm">
	<div class="bs-callout">
		<a class="product-section-title no-clickable-link">
			<h2>Editer un produit</h2>
		</a>
		
		<input type="hidden" name="productID" value="${product.hjid}"/>


		<div class="row">
			<div class="col-md-6">
				<div class="form-group">
					<label class="control-label">Label du produit</label> <input
						type="text" class="form-control" name="labelProduct"
						value="${product.label}" />
				</div>
			</div>

			<div class="col-md-6">
				<div class="form-group">
					<label class="control-label">Code du produit</label> <input
						type="text" class="form-control" name="codeProduct"
						value="${product.code}" />
				</div>
			</div>

			<div class="col-md-6">
				<div class="form-group">
					<label class="control-label">Description du produit</label> <textarea rows="10"
						class="form-control" name="descriptionProduct">${product.description}</textarea>
				</div>
			</div>

			<div class="col-md-6">
				<div class="form-group">
					<label class="control-label">Prix</label> <input type="number"
						value="${product.price}" class="form-control" name="priceProduct" />
				</div>
			</div>

			<div class="col-md-6">
				<div class="form-group">
					<label class="control-keywords">Mots clé</label> <input type="text"
						class="form-control" name="keywordsProduct"
						value="${product.keywords}" />
				</div>
			</div>


		</div>

		
		<div class="row">
			<div class="col-md-12" style="text-align: center;">
				<input class="btn btn-primary" type="submit" value="Modifier"
					data-container="body" data-toggle="popover" data-placement="right"
					data-original-title="" title=""/>
				
					<a href="/cultu/supplier/product/${product.hjid}"/><input type="button" class="btn btn-primary" value="Annuler"
					data-container="body" data-toggle="popover" data-placement="right"
					data-original-title="" title="" ></a>
			</div>
		</div>



	</div>
</form>